Use the new file_exec_paths RPC
authorEmilio Pozuelo Monfort <pochu27@gmail.com>
Sat, 22 May 2010 16:26:29 +0000 (18:26 +0200)
committerAurelien Jarno <aurel32@debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
commitf1b239b782a70ecaebb21da76b0e1055e2bf6994
treeb735d4b18ebd63d7f27f24d899529ce56f7b418f
parent1e4af3f9505143efa562ff6a772f66b9ce53d507
Use the new file_exec_paths RPC

Pass the file paths of executable to the exec server, both relative and
absolute, which exec needs to properly execute and avertise #!-scripts.
Previously, the exec server tried to guess the name from argv[0] but argv[0]
only contains the executable name by convention.

2010-08-04  Emilio Pozuelo Monfort  <pochu27@gmail.com>
2017-09-26  Svante Signell  <svante.signell@gmail.com>

* hurd/hurdexec.c (_hurd_exec): Deprecate function.
(_hurd_exec_paths): New function.
* hurd/hurd.h (_hurd_exec): Deprecate function.
(_hurd_exec_paths): Declare function.
* hurd/Versions: Export _hurd_exec_paths.
* sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
(__execve): Use __getcwd to build absolute path, and use
_hurd_exec_paths instead of _hurd_exec.
* sysdeps/mach/hurd/spawni.c: Likewise.
* sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
_hurd_exec.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-exec_filename.diff
hurd/Versions
hurd/hurd.h
hurd/hurdexec.c
sysdeps/mach/hurd/execve.c
sysdeps/mach/hurd/fexecve.c
sysdeps/mach/hurd/spawni.c